package com.harassment.interception.data.databases.entities;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.PrimaryKey;
import android.support.annotation.NonNull;

@Entity(tableName = "black_list")
public class BlackList {
    @PrimaryKey(autoGenerate = true)
    private long id;//黑名单id
    @ColumnInfo(name = "number")
    private String number;//拦截号码
    @ColumnInfo(name = "phone")
    private boolean phone;//拦截电话
    @ColumnInfo(name = "sms")
    private boolean sms;//拦截短信
    @ColumnInfo(name = "model")
    private int model;//拦截模式
    @ColumnInfo(name = "remark")
    private String remark;//备注

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public boolean isPhone() {
        return phone;
    }

    public void setPhone(boolean phone) {
        this.phone = phone;
    }

    public boolean isSms() {
        return sms;
    }

    public void setSms(boolean sms) {
        this.sms = sms;
    }

    public int getModel() {
        return model;
    }

    public void setModel(int model) {
        this.model = model;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("BlackList{");
        sb.append("id=").append(id);
        sb.append(", number='").append(number).append('\'');
        sb.append(", phone=").append(phone);
        sb.append(", sms=").append(sms);
        sb.append(", model=").append(model);
        sb.append(", remark='").append(remark).append('\'');
        sb.append('}');
        return sb.toString();
    }
}

